<template>
    <div>
        <div class="black-Bg" :style="{height:Height}">        
        </div>
    </div>
</template>
<script>
export default {
    data(){
        return{
            Height:'',
        }
    },
    props:['bgTopOne'],
    created(){
        this.bgHeight();
    },
    methods:{
        bgHeight(){
            this.Height = (document.body.clientHeight - Number(this.bgTopOne)) + 'px'
            console.log(this.Height,999)
        }
    }
}
</script>
<style lang="less" scoped>
.black-Bg{
    position: absolute;
    left: 0;
    top: 90px;
    width: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 5;
}
</style>

